package QuanLyNhanSu;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.Serializable;

public class NguoiDung implements Serializable{
	
	String TenDN;
	String MatKhau;	
	int Quyen;
	
	public NguoiDung(){
		this.TenDN = null;
		this.MatKhau = null;
		this.Quyen = 1;
	}
	
	public NguoiDung(NguoiDung NV){
		this.TenDN = NV.TenDN;
		this.MatKhau = NV.MatKhau;
		this.Quyen = NV.Quyen;
	}
	
	public NguoiDung(String tdn, String mk, int q){
		this.TenDN = tdn;
		this.MatKhau = mk;
		this.Quyen = q;
	}
	
	public String getTenDN(){
		return this.TenDN;
	}
	
	public String getMatKhau(){
		return this.MatKhau;
	}
	
	public int getQuyen(){
		return this.Quyen;
	}/*
	
	public void SetNV(BufferedReader in){
		try {
			System.out.print("MSSV: "); 
			this.TenDN = in.readLine();
			System.out.print("Họ và tên: "); 
			this.MatKhau = in.readLine();
			System.out.print("Số điện thoại: "); 
			this.SoDT = in.readLine();
			System.out.print("Năm sinh: ");
			this.Quyen = Integer.parseInt(in.readLine());
			
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}*/

	
}
